<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>

    <script type="text/javascript" src="vue.js"></script>
    <script type="text/javascript" >
  
    
    //1.模板必须要有一个根div包裹
        new Vue({
            el:"#app",
            template:`
            <div>
                <div>hello {{msg}}</div>
                <div> ok</div>
            </div>
            
            `,
            data:function () {
               return {msg:"123"}
            }
        })
    </script>
</body>
</html>